<?php
namespace Home\Controller;
use Think\Controller;

class ShoppingcartController extends BaseController
{

    public function _initialize()
    {
        parent::_initialize();
    }



    public function index()
    {
        header("Content-Type:text/html; charset=utf-8");

        $Lock = M('locktable');

        $locklist = $Lock->select();

        foreach ($locklist as $item) {
//            echo $item['lockname'];
            $this->assign('x' . $item['id'] . 'name', $item['lockname']);
            $this->assign('x' . $item['id'] . 'saleprice', $item['price']);
        }

        $this->display();


    }

}